/**
 * @title Public注解
 * @description controller加上该注解之后，接口不走token鉴权
 * @Author webxue
 * @Date 2022/12/02
 *
 * 使用方法
 *  @Public()
 *  fn(){}
 */

import { SetMetadata } from "@nestjs/common";
import { AuthKeyword } from "src/utils/Mapping";

export const Public = () => SetMetadata(AuthKeyword.NoToken, true);
